x=list(range(10))
def move_even(x):
    odd_list=[]
    even_list=[]
    for item in x:
        if item %2 ==0:
            even_list.append(item)
        else:
            odd_list.append(item)
    even_list.extend(odd_list)
    return even_list
print(x)
r6=move_even(x)
print('偶数元素移到前面',r6)
